package com.xugou.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Dept {

    private Integer deptId;
    private String deptName;
    //一个部门有多个员工
    private List<Emp> empList;

    public Dept(Integer deptId, String deptName) {
        this.deptId = deptId;
        this.deptName = deptName;
    }
    public Dept(String deptName) {
        this.deptName = deptName;
    }
}
